<template>
  <slot />
</template>

<script setup lang="ts">
import { useAttrs, provide, shallowReadonly } from 'vue'
import { useBuildAttrsKeys } from './hooks'
import { type AConfigProviderTypes } from './types'

const attrs = useAttrs()

provide<AConfigProviderTypes>(useBuildAttrsKeys, shallowReadonly(attrs))

defineOptions({
  name: 'AConfigProvider'
})
</script>

<style scoped></style>
